
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.FodderStorage;

import java.math.BigDecimal;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage FodderStorage entities.
 * 
 */
public interface FodderStorageDAO extends JpaDao<FodderStorage> {

	/**
	 * JPQL Query - findAllFodderStorages
	 *
	 */
	public Set<FodderStorage> findAllFodderStorages() throws DataAccessException;

	/**
	 * JPQL Query - findAllFodderStorages
	 *
	 */
	public Set<FodderStorage> findAllFodderStorages(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageById
	 *
	 */
	public FodderStorage findFodderStorageById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageById
	 *
	 */
	public FodderStorage findFodderStorageById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByPrimaryKey
	 *
	 */
	public FodderStorage findFodderStorageByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByPrimaryKey
	 *
	 */
	public FodderStorage findFodderStorageByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByTime
	 *
	 */
	public Set<FodderStorage> findFodderStorageByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByTime
	 *
	 */
	public Set<FodderStorage> findFodderStorageByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByQuantity
	 *
	 */
	public Set<FodderStorage> findFodderStorageByQuantity(java.math.BigDecimal quantity) throws DataAccessException;

	/**
	 * JPQL Query - findFodderStorageByQuantity
	 *
	 */
	public Set<FodderStorage> findFodderStorageByQuantity(BigDecimal quantity, int startResult, int maxRows) throws DataAccessException;

}